package com.eve.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.eve.service.HelloService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
/*服务版本，注意消费者注入版本应一致*/
@Service(version = "1.0.0",group = "helloService1",loadbalance = "roundrobin",timeout = 10000,interfaceClass = HelloService.class)
public class HelloServiceImpl implements HelloService {
 
    private static final Logger logger = LoggerFactory.getLogger(HelloServiceImpl.class);
 
 
    @Override
    public String sayHello(String name) {
 
        return "Hello"+name;
    }
}